/**
 * 
 */
package kevin.study.zephyr.domain.model.ui;

import kevin.study.zephyr.domain.model.Field;
import kevin.study.zephyr.domain.model.base.Base;

/**
 * @author Kevin.Huang
 * @createtime 2007-9-26
 */
public class UIField extends Base {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6524085756948934936L;

	/**
	 * 是否多值
	 */
	private Boolean multivalue = false;

	/**
	 * 显示时的分割符
	 */
	private String displaySeparator = "\n";

	/**
	 * 输入时的分隔符,可多选
	 */
	private String[] inputSeparator = {"\r", "\n" };

    public String getUiType() {
        return uiType;
    }

    public void setUiType(String uiType) {
        this.uiType = uiType;
    }

    /**
     * 显示类型
     */
    private String uiType;

    public Boolean getMultivalue() {
        return multivalue;
    }

    public void setMultivalue(Boolean multivalue) {
        this.multivalue = multivalue;
    }

    /**
	 * @return the displaySeparator
	 */
	public String getDisplaySeparator() {
		return displaySeparator;
	}

	/**
	 * @param displaySeparator
	 *            the displaySeparator to set
	 */
	public void setDisplaySeparator(String displaySeparator) {
		if (displaySeparator == null) {
			throw new NullPointerException("This property<displaySeparator> can't be Null!");
		}
		this.displaySeparator = displaySeparator;
	}

	/**
	 * @return the inputSeparator
	 */
	public String[] getInputSeparator() {
		return inputSeparator;
	}

	/**
	 * @param inputSeparator
	 *            the inputSeparator to set
	 */
	public void setInputSeparator(String[] inputSeparator) {
		this.inputSeparator = inputSeparator;
	}
}
